package cn.yunbamboos.rest.service.anno;

import cn.yunbamboos.rest.service.transaction.Transaction;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RestServiceTransaction {

    /**
     * 事务 RestServiceTransaction
     */
    Transaction value() default Transaction.WRITE;

}
